package com.tcsl.mylibrary;

import android.content.Context;

import cn.com.tcsl.canyin7.TCSLApplication;
import cn.com.tcsl.canyin7.utils.Constants;

/**
 * 描述:支付类工厂
 * <p/>作者：wjx
 * <p/>创建时间: 2017/5/26 16:30
 */
public class TcslPayFactory {
    public static TcslPay create(Context context) {
        int type = TCSLApplication.getInstance().getSystem().getEquipmentType();
        switch (type) {
            case Constants.WANGPOS:
                return new PayWangPos(context);
            case Constants.LKL:
                return new PayLaKaLa(context);
            case Constants.HEZIZHIFU:
                return new PayHeZi(context);
            case Constants.UMS:
                return new PayUMS(context);
            case Constants.CPOS:
                return new PayCPos(context);
            case Constants.MiniWang:
                return new PayWangMi(context);
            case Constants.FEIPOS:
                return new PayFeiFan(context);
            case Constants.MEITUAN:
                return new PayMeiTuan(context);
            default:
                return new PayNormal(context);
        }
    }
}
